package com.imu.purse.modules.app.service;

import com.imu.purse.modules.app.entity.CoreEntity;
import java.util.List;

/**
 * 
 * @author sunhongwei
 * @email sunhongwei@jshijian.com
 * @date 2018-04-16 16:15:31
 * Copyright (c) 2017 武汉极时间科技有限公司 版权所有 
 * Jshijian aloha CO.,LTD. All Rights Reserved. 
 */
public interface CoreService 
{
	/****
	 * 插入
	 * @param core
 	 * @date 2018-04-16 16:15:31
	 * @return
	 */
    public int save(final CoreEntity core);
    
    /****
	 * 删除
	 * @param ids
 	 * @date 2018-04-16 16:15:31
	 * @return
	 */
    public boolean delete(final String ...ids);
    
    /****
	 * 修改
	 * @param core
 	 * @date 2018-04-16 16:15:31
	 * @return
	 */
    public int update(final CoreEntity core);
    
     /****
	 * 插入或跟新
	 * @param core
 	 * @date 2018-04-16 16:15:31
	 * @return
	 */
    public int saveUpdate(final CoreEntity core);
    
    /****
	 * 根据ID查询
	 * @param id
 	 * @date 2018-04-16 16:15:31
	 * @return
	 */
    public CoreEntity findById(final Integer id);
    
    /****
   	 * 分页查询
	 * @param core
 	 * @date 2018-04-16 16:15:31
   	 * @return
   	 */
    public List<CoreEntity> queryList(final CoreEntity core);

	/**
	 * 获取核心钱包地址
	 * @return
	 */
	String getCoreAddress();

}
